

def FeiBo(high, low, hldir):
    outDir = {}
    outDir2 = {}
    if hldir == 1:
        Diff = high - low
        outDir2[0.25] = high - Diff * 0.25
        outDir2[0.382] = high - Diff * 0.382
        outDir2[0.50] = high - Diff * 0.50
        outDir2[0.618] = high - Diff * 0.618
        outDir2[0.75] = high - Diff * 0.75
        return outDir2

    elif hldir == 0:
        Diff = high - low
        outDir[0.25] = low + Diff * 0.25
        outDir[0.382] = low + Diff * 0.382
        outDir[0.50] = low + Diff * 0.50
        outDir[0.618] = low + Diff * 0.618
        outDir[0.75] = low + Diff * 0.75

        return outDir


if __name__ == '__main__':
    # res1, res2 = FeiBo(61.34, 46.75, 1)
    # res3, res4 = FeiBo(61.34, 46.75, 0)
    res = FeiBo(35.93, 24.25, 0)
    # res3, res4 = FeiBo(6.15, 4.51, 0)
    print('\n')
    print(res)

    # print(res3)
    # print(res4)
